package com.akkainaction.helloactor.forward;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.helloactor.forward.actor.FrowardActor;
import com.akkainaction.helloactor.forward.actor.SendMsgActor;

public class TestForward {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys");
        ActorRef sendMsgActor = system.actorOf(Props.create(SendMsgActor.class), "sendMsgActor");
        ActorRef forwardActor = system.actorOf(Props.create(FrowardActor.class), "forwardActor");
        forwardActor.tell("hello forward",sendMsgActor);
    }
}
